package com.huiyeji.dynamic.core.provider;

import com.huiyeji.dynamic.core.DynamicContext;

public abstract class AbstractParamProvider implements ParamProvider {

    private final String paramName;

    public AbstractParamProvider(String paramName){
        this.paramName = paramName;
    }

    @Override
    public Object get(DynamicContext context){
        return get(context,paramName);
    }

    public abstract Object get(DynamicContext context, String paramName);

    protected String getParamName(){
        return this.paramName;
    }
}
